//index.js
//获取应用实例
const app = getApp();
const getToken= require('../../utils/get_token.js');
const WxParse = require('../../wxParse/wxParse.js');
let cookie, token;

const getRule = (that) => {//规则
  let params = ['common/noteBook/getNoteBook', {"id":"6DD6462775664148A505DB0C3424C2E7"}]
  getToken.getData(function (res) {
    console.log(res.data)
    WxParse.wxParse('rule', 'html', res.data.content, that, 5);
  }, ...params)
};
Page({
  data: {
  
  },
  onLoad: function () {
    let that = this;
    cookie = wx.getStorageSync('cookie') || '';
    token = wx.getStorageSync('token') || '';
    getRule(that);
  },

})
